package inClass;

public class Person {
	private String name;
	
	void setName(final String name){
		this.name=name;
	}
	
	boolean hasSameName(Person other)throws PersonException{
		try {
			return this.name.equals(other.name);
		} catch (Exception e) {
			throw new PersonException(name, e);
			
		}
		
	}
}
